<%-- 
    Document   : MasterPage
    Created on : Oct 18, 2012, 1:42:01 PM
    Author     : Vietlt
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        <title>Recruitment Management</title>
        <link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
    </head>
    <body>
        <!-- Header -->
        <div id="header">
            <div class="shell">
                <!-- Logo + Top Nav -->
                <div id="top">
                    <h1><a href="#">[HTD]-Group Adminstrator</a></h1>
                    <div id="top-navigation">
                        Welcome <a href="#"><strong>Administrator</strong></a>
                        <span>|</span>
                        <a href="#">Help</a>
                        <span>|</span>
                        <a href="#">Profile Settings</a>
                        <span>|</span>
                        <a href="#">Log out</a>
                    </div>
                </div>
                <!-- End Logo + Top Nav -->

                <!-- Main Nav -->
                <div id="navigation">
                    <ul>
                        <li><a href="#" class="active"><span>Home</span></a></li>
                        <li><a href="#"><span>Applicant</span></a></li>
                        <li><a href="#"><span>Deparment</span></a></li>
                        <li><a href="#"><span>Employee</span></a></li>
                        <li><a href="#"><span>SchedulingInterview</span></a></li>
                        <li><a href="#"><span>Vacancy</span></a></li>
                    </ul>
                </div>
                <!-- End Main Nav -->
            </div>
        </div>
        <!-- End Header -->

        <!-- Container -->
        <div id="container">
            <div class="shell">
                <!-- Message OK -->		
                <div class="msg msg-ok">
                    <p><strong>Your file was uploaded succesifully!</strong></p>
                    <a href="#" class="close">close</a>
                </div>
                <!-- End Message OK -->		

                <!-- Message Error -->
                <div class="msg msg-error">
                    <p><strong>You must select a file to upload first!</strong></p>
                    <a href="#" class="close">close</a>
                </div>
                <!-- End Message Error -->
                <br />
                <!-- Main -->
                <div id="main">
                    <div class="cl">&nbsp;</div>

                    <!-- Content -->
                    <div id="content">

                        <div class="box">
                            <!-- Box Head -->
                            <div class="box-head">
                                <h2>List Applicant</h2>
                            </div>
                            <!-- End Box Head -->
                            <!-- Form -->

                            <html:errors/>
                            <logic:empty name="ApplicantForm" property="listApp">
                                NO data
                            </logic:empty>
                            <logic:notEmpty name="ApplicantForm" property="listApp">
                                <table style="text-align: center" cellpadding ="12" cellspacing ="12" width="600px">
                                    <tr>
                                        <th>ApplicantID</th>
                                        <th>FirstName</th>
                                        <th>LastName</th>
                                        <th>Gender</th>
                                        <th>PhoneNumber</th>
                                        <th width="120">Email</th>
                                        <th>Detail</th>
                                        <th>Update</th>
                                        <th>Delete</th>
                                    </tr>
                                    <logic:iterate id="bean" name="ApplicantForm" property="listApp">
                                        <tr>
                                            <td><bean:write name="bean" property="applicantID"/></td>
                                            <td><bean:write name="bean" property="firstName"/></td>
                                            <td><bean:write name="bean" property="lastName"/></td>
                                            
                                            <logic:equal value="true" name="bean" property="gender"><td style="background-color: #ccc">Male</td></logic:equal>
                                                <logic:equal value="false" name="bean" property="gender"><td>Female</td></logic:equal>
                                            
                                            <td><bean:write name="bean" property="phoneNumber"/></td>
                                            <td><bean:write name="bean" property="email"/></td>
                                            <td>
                                                <html:link action="DetailApplicant" paramId="idParam" paramName="bean" paramProperty="applicantID">Detail</html:link>
                                            </td>
                                            <td>
                                                <html:link action="DetailApplicant" paramId="idParam" paramName="bean" paramProperty="applicantID">Update</html:link>
                                            </td>
                                            <td>
                                                <html:link action="DeleteApplicant" paramId="idParam" paramName="bean" paramProperty="applicantID">Delete</html:link>
                                            </td>
                                        </tr>
                                    </logic:iterate>
                                </table>
                            </logic:notEmpty>

                            <!-- End Form -->

                            <!-- Form Buttons -->

                        </div>
                        <!-- End Box -->

                    </div>
                    <!-- End Content -->

                    <!-- Sidebar -->
                    <div id="sidebar">

                        <!-- Box -->
                        <div class="box">

                            <!-- Box Head -->
                            <div class="box-head">
                                <h2>Management</h2>
                            </div>
                            <!-- End Box Head-->

                            <div class="box-content">
                                <a href="#" class="add-button"><span>Add new Applicant</span></a>

                                <div class="cl">&nbsp;</div>



                            </div>
                        </div>
                        <!-- End Box -->

                    </div>
                    <!-- End Sidebar -->

                    <div class="cl">&nbsp;</div>			
                </div>
                <!-- Main -->
            </div>
        </div>
        <!-- End Container -->

        <!-- Footer -->
        <div id="footer">
            <div class="shell">
                <span class="left">&copy; 2012 - HTD-Group www.htd-group.com.vn</span>
                <span class="right">
                    Design by <a href="http://vietlt.vn" target="_blank" title="Recruitment">Mr.Vietlt</a>
                </span>
            </div>
        </div>
        <!-- End Footer -->

    </body>
</html>